var mongoose =require('mongoose');
mongoose.connect('mongodb://localhost/job');
var schema = mongoose.Schema;
var userSchema = new schema({
    user:{
        type:String,
        required:true
    },
    password:{
        type:String,
        required:true
    },
    type:{
        type:String,
        required:true
    },
    avatar:{
        type:String,
       
    },
    desc:{
        type:String,
        
    },
    title:{
        type:String,
    },
    company:{
        type:String,
    },
    money:{
        type:String
    }

})

var user = mongoose.model('User',userSchema);
module.exports = user;